//
//  ZFBCycleCell.m
//  HMPay
//
//  Created by HaoYoson on 16/7/4.
//  Copyright © 2016年 HaoYoson. All rights reserved.
//

#import "HMCycleView.h"
#import "Masonry.h"
#import "ZFBCycleCell.h"

@interface ZFBCycleCell ()

@property (weak, nonatomic) HMCycleView *cycleView;

@end

@implementation ZFBCycleCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self setupUI];
    }
    return self;
}

- (void)setImageURLs:(NSArray *)imageURLs {
    _imageURLs = imageURLs;

    self.cycleView.imageURLs = imageURLs;
}

- (void)setupUI {
    HMCycleView *cycleView = [[HMCycleView alloc] init];
    [self.contentView addSubview:cycleView];

    [cycleView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.offset(0);
    }];

    self.cycleView = cycleView;
}

@end
